package com.woniuxy.creditsystem.common.bean;

import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

//车辆信息表
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@Getter
@Setter
public class VehicleInfo implements Serializable {

  private long id;
  private String brands;          //车辆品牌
  private String carModel;        //车辆型号
  private String vehicleLicense;  //车辆牌号
  private String frameNumber;     //车架号
  private String engineNumber;    //发动机号
  private String carColor;        //车身颜色
  private int vehicleYears;      //车辆年限
  private double bareCarPrice;    //裸车价格
  @DateTimeFormat(pattern ="yyyy-MM-dd")
  private Date buyTime;           //购车时间
  @DateTimeFormat(pattern ="yyyy-MM-dd")
  private Date carLicenseTime;    //上牌时间
  private double drivenDistance;  //行驶里程
  private String carCondition;    //车况
  private String vehicleUse;      //车辆用途
  private String city;            //城市

  private String carAppearance;          //车辆外观
  private String carInterior;        //车辆内饰
  private String carEngine;  //车辆发动机
  private String carChassis;     //车底盘
  private String carOther;    //车辆其他


  private CustomerInfo customerInfo;//客户外键

}
